package de.gameduell.framework.player {
	import flash.events.Event;

	/**
	 * @author daal
	 */
	public class PlayerEvent extends Event {

		public static const PLAY:String = "play";
		public static const STOP:String = "stop";
		public static const START:String = "start";
		public static const PAUSE:String = "pause";		public static const FINISHED:String = "finished";
		public static const SCENE_COMPLETED : String = "sceneCompleted";
		public static const SCENE_INITED : String = "sceneInited";
		public static const PROGRESS : String = "progress";
		public static const ROUND_CHANGED : String = "ROUND_CHANGED";
		public static const JUMP : String = "JUMP";		
		private var _scene : IScene;
		private var _indexOfCurrentScene : uint;
				

		public function PlayerEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false) {
			super(type, bubbles, cancelable);
		}
		
		public function get scene() : IScene {
			return _scene;
		}
		
		public function set scene(scene : IScene) : void {
			_scene = scene;
		}
		
		public function get indexOfCurrentScene() : uint {
			return _indexOfCurrentScene;
		}
		
		public function set indexOfCurrentScene(indexOfCurrentScene : uint) : void {
			this._indexOfCurrentScene = indexOfCurrentScene;
		}
	}
}
